﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QLNSClient
{
    public partial class uc_dsKyluat : UserControl
    {
        QLNSServiceReference.QLNSServiceClient sv = new QLNSServiceReference.QLNSServiceClient();
        
        public uc_dsKyluat()
        {
            InitializeComponent();
        }



        public void LoadData()
        {

            lke_loaiKL.Properties.DataSource = sv.getKL();
            gv_dsKL.DataSource = sv.getCBKL();
        }


        private void labelControl1_Click(object sender, EventArgs e)
        {

        }

        private void uc_dsKyluat_Load(object sender, EventArgs e)
        {
            LoadData();
        }

        private void lke_loaiKL_EditValueChanged(object sender, EventArgs e)
        {
            int a = Int32.Parse(lke_loaiKL.EditValue.ToString());
            gv_dsKL.DataSource = sv.getCBKLtheoKL(a);
        }

        private void btn_All_Click(object sender, EventArgs e)
        {
            LoadData();
        }
    }
}
